import request from './request'

// 登录
export const login = (credentials) => {
  return request.post('/auth/login', credentials)
}

// 登出
export const logout = () => {
  return request.post('/auth/logout')
}

// 获取用户信息
export const getUserInfo = () => {
  return request.get('/auth/info')
}

// 刷新token
export const refreshToken = () => {
  return request.post('/auth/refresh')
}
